package net.andersand.games.yatzy;

enum ScoreType {

	// IMPORTANT: Keep the ordering here (1 through 6) as is. 
	// Their ordinal values are used in analysis:
	ONES("Ones"), TWOS("Twos"), THREES("Threes"), FOURS("Fours"), FIVES("Fives"), SIXES("Sixes"),
	// From here, order is not acually important:
	PAIR("Pair"), TWOPAIRS("Two pairs"), 
	THREEOFAKIND("Three of a kind"), FOUROFAKIND("Four of a kind"), 
	FULLHOUSE("Full house"), SMALLSTRAIGHT("Small straight"), LARGESTRAIGHT("Largs straight"), 
	YATZY("Yatzy"), CHANCE("Chance");

	/**
	 * The name of the score type
	 */
	private String name;

	ScoreType(String name) {
		this.name = name;
	}
	
	String getName() {
		return name;
	}
	
}
